package work.month06.day28;

import java.io.File;
import java.nio.charset.Charset;

/**
 * @date 2020/06/28
 * @author 王光浩
 * @introduction 测试将一个目录中的按照某种方式编码的所有文件 按照另一种方式进行编程
 */
public class Test4 {

	public static void main(String[] args) {
		File originDirectory = new File("D:/test1");
		File destDirectory = new File("D:/test2");
		FileEncodingConvertor instance = FileEncodingConvertor.getInstance();
		instance.batch(originDirectory, Charset.forName("UTF-8"), destDirectory, Charset.forName("GBK"));
	}
	
}
